Category: Geeks r Us
Hi.
I'm just wondering:
If i bind a port to a program on a computer, is it possible (on a html or php page or what ever) to send that port data from the form as a peramiter?
For example, if i bind commands.bat to port 123456, can i make the data entered in form.html be sent to port 123456 as a peramiter?
(If i'm not making any sence, i'll try and explain again)
B3n
Hmm I believe you can do this in php, I haven't written much code in php but I think I've seen something like this. Why do you need to do it this way?
Cheers
-B
At first, i just wanted something that would log me of, and restart my computer at home.
Now, what i'm thinking is a site for the publicl, where they type in a phrase, and then a tts program on my computer ses it.
Other things i'm thinking of doing is letting users here what other people are saying, (shoutcast or something), just a bit of fun, for me and the users.
B3n
O, and sorry, but i've never done much in php, (made it print something on the screen once, but thats as far as i got), so, could you like help me, or gimme a link to a program like that?
Thanks allot, B3n
You can use PHP with the sockets functions they have... PHP is insanely easy to learn especially if you have some programming experience even with small scripting alnguages like Jaws Scripting or JavaScript or what have you. I think there's probably a perl module that deals with sockets too.
James
Thanks all for the help, and can anyone tell me a site that'll teach me php?
Thanks, B3n
Perl has Net::Server which looks interesting. you can use the php socket functions, or you can have whatever is bound to the socket be able to parse what's sent via HTTP. I'd pick the former.
If you want to learn PHP, just do a search a search on Google for something "learn php" or "php tutorials". You can also purchase books that teach you the language. It's very simple stuff though.
Chet